package com.wing.productionPlan.model.response;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wing.productionPlan.model.entity.ProductionPlan;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class ProductionPlanDetails {
    /**
     * 计划来源
     */
    private ProductionPlan.PlanSource planSource;

    /**
     * 计划来源描述
     */
    @TableField(exist = false)
    private String planSourceDesc;

    public String getPlanSourceDesc() {
        return planSource == null ? null : planSource.getDesc();
    }

    private List<ProductionPlanVO> planData;
    private List<AuditRecordVO> auditData;
}
